package com.jdbc.utils;

import org.junit.Test;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * Copyright (c) 2023-2033 All Rights Reserved
 *
 * JDBC Part4 JDBC Utils 测试类
 * 下一步：优化事务操作，通过工具类获取Connection
 *
 * @date: 2023/9/25
 */
public class JdbcUtilsTest {

    @Test
    public void testJdbcUtilsConnection() throws SQLException {
        Connection connection = JdbcUtils.getConnection();

        // CRUD

        JdbcUtils.freeConnection();
    }

}
